<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8" />
		<title>服务商登录</title>
		<link rel="stylesheet" href="__OEM__/css/iconfont.css" />
		<link rel="stylesheet" href="__OEM__/css/css.css" />
	</head>

	<body>
		<div class="top_phone">
			<p>服务电话：<?php echo config('service_phone') ?></p>
		</div>
		<div class="navbox clearfix">
			<div class="logo"><img src="__PUBLIC__/static/logo/1/oemlogo.png"></div>
			<ul class="lognav">
				<li><a href="http://www.jumeishangbang.com/">网站首页</a></li>
				<li><a href="http://www.jumeishangbang.com/col.jsp?id=106">关于我们</a></li>
				<li><a href="http://www.jumeishangbang.com/col.jsp?id=103">产品中心</a></li>
				<li><a href="http://www.jumeishangbang.com/col.jsp?id=104">合作加盟</a></li>
				<li><a href="http://www.jumeishangbang.com/col.jsp?id=107">美商学院</a></li>				
				<li><a href="http://www.jumeishangbang.com/col.jsp?id=105">新闻动态</a></li>
			</ul>
		</div>
		<div class="content" style="background:url('__PUBLIC__/static/logo/1/banner.jpg');">
			<div class="contbox clearfix">
				<div class="left">
					<p class="bt">美商云 生意不止</p>
					<p class="tip">微信客户端&nbsp;&nbsp;&nbsp;&nbsp;管理更方便</p>
					<div class="erweimabox clearfix">
						<div class="ios">
							<p><img src="__PUBLIC__/static/logo/1/erweima1.jpg"></p>
							<p class="wz">微信公众号关注</p>
						</div>
						<div class="android">
							<p><img src="__PUBLIC__/static/logo/1/erweima2.jpg"></p>
							<p class="wz">手机端APP下载</p>
						</div>
					</div>
				</div>
				<div class="right">
					<div class="login_form">
						<div class="top">
							<a href="{:url('agent/login/index')}">商户登录</a>
							<a class="active" href="{:url('oem/login/index')}">服务商登录</a>
						</div>
						<form method="post" id="doLogin" action="{:url('login/dologin')}">
							<div class="number"><input type="text" name="oem_mobile" id="oem_mobile" placeholder="请输入手机号"></div>
							<div class="password"><input type="password" name="ome_password" id="ome_password" placeholder="请输入密码"></div>
							<div class="button"><input type="button" id='btn' value="登录"></div>
							<div class="forget">
								<a href="javascript:;" onclick="return_pwd()">忘记密码</a>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
		<div class="login_numwrap">
			<div class="login_numbox clearfix">
				<div class="left">
					<p class="bt">商家专线</p>
					<p>服务电话：<?php echo config('service_phone') ?></p>
					<p>服务时间：周一至周六 8:30-18:00</p>
					<p>地址：{$Think.config.address}</p>
				</div>
				<div class="center">
					<p class="bt">在线客服</p>
					<p>商家专用咨询通道，在线客服即时解答</p>
					<p>服务时间：周一至周六 8:30-18:00</p>
					<p>
						<a href="http://wpa.qq.com/msgrd?v=3&amp;uin=1145614764&amp;site=qq&amp;menu=yes" style="color: #E67017;">点击咨询</a>
					</p>
				</div>
						<div class="right">
					<p class="bt">商家专线</p>
					<p>公司官方网站</p>
					<p>{$Think.config.site}</p>
					<p><a href="{$Think.config.site}" target="_blank" style="color: #E67017;">点击进入</a></p>
				</div>
			</div>
		</div>
		{include file="public/footer" /}
	</body>

</html>
<script>
	$('#btn').click(function() {
		var oem_mobile = $("#oem_mobile").val();
		var ome_password = $("#ome_password").val();
		if(oem_mobile == '') {
			layer.msg('用户名不能为空');
			return;
		}

		if(ome_password.trim() == '') {
			layer.msg('密码不能为空');
			return;
		}

		$.ajax({
			url: "{:url('login/dologin')}",
			type: 'post',
			async: false,
			data: {
				oem_mobile: oem_mobile,
				oem_password: ome_password
			},
			success: function(data) {
				if(data.code == 200) {
					layer.msg(data.msg, {
						icon: 1,
						time: 1000
					}, function() {
						location.reload();
					});
				} else {
					layer.msg(data.msg, {
						icon: 1,
						time: 1000
					});
				}
			}
		})
	});

	function return_pwd() {
		layer.open({
			type: 2,
			title: '服务商修改密码',
			shadeClose: true,
			shade: 0.8,
			area: ['350px', '300px'],
			content: "{:url('login/return_pwd')}"
		});
	}
</script>